money = input('')
if money[0:3] in ['RMB']:
	C = eval(money[3:])/6.78
	print("USD{:.2f}".format(C))
elif money[0:3] in ['USD']:
	C = eval(money[3:])*6.78
	print("RMB{:.2f}".format(C))
else:
	print("输入格式错误！")